package com.nandi.deviceinstall.contract

import com.nandi.deviceinstall.base.BaseView
import com.nandi.deviceinstall.bean.BaseObjectBean
import com.nandi.deviceinstall.bean.LoginBean

import io.reactivex.Flowable


interface LoginContract {
    interface Model {
        fun login(username: String, password: String): Flowable<LoginBean>
    }

    interface View : BaseView {
        override fun showLoading()

        override fun hideLoading()

        override fun onError(msg:String,code:Int)

        fun onSuccess(bean: LoginBean)
    }

    interface Presenter {
        /**
         * 登陆
         *
         * @param username
         * @param password
         */
        fun login(username: String, password: String)
    }
}
